package com.example.modulemine.view.activity;


import android.os.Bundle;
import android.view.View;
import android.widget.EditText;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.example.baselibs.base.activity.BaseToolBarActivity;
import com.example.baselibs.router.path.ModuleMinePath;
import com.example.modulemine.R;
import com.example.modulemine.R2;

import butterknife.BindView;
import butterknife.OnClick;

@Route(path = ModuleMinePath.PATH_REGISTER)
public class RegisterActivity extends BaseToolBarActivity {
    @BindView(R2.id.et_phone_number)
    EditText phoneNum;
    @BindView(R2.id.et_code)
    EditText smsCode;
    @BindView(R2.id.et_pw)
    EditText Password;

    @Override
    public String setTitle() {
        return "注册";
    }

    @Override
    public int getLayoutRes() {
        return R.layout.activity_register;
    }

    @OnClick({R2.id.btn_getcode,R2.id.btn_next_step,R2.id.tv_secrecy})
    public void onRegisterClick(View view){
        int id=view.getId();
        if (id==R.id.btn_getcode){//获取验证码

        }else if (id==R.id.btn_next_step){//下一步

        }else if (id==R.id.tv_secrecy){//注册协议
            toActivity(ModuleMinePath.PATH_AGREE_PROTOCOL);
        }
    }

    @Override
    public void initData(Bundle savedInstanceState) {

    }
}
